package com.xinsoft.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinsoft.entity.dto.CusBreakDownRepaireDTO;
import com.xinsoft.entity.dto.CusRepaireDTO;
import com.xinsoft.entity.dto.CusRepairePageParam;
import com.xinsoft.entity.po.CusRepaire;
import com.xinsoft.entity.vo.CusRepaireVo;

import java.util.List;

/**
* @author hsm
* @description 针对表【cus_repaire(故障维修

维修时使用状况需要回写设备表)】的数据库操作Service
* @createDate 2023-06-20 16:46:12
*/
public interface CusRepaireService extends IService<CusRepaire> {

    CusRepaire  dealAddCusRepaire(CusRepaireDTO cusRepaireDTO);

    CusRepaire dealEditCusRepaire(CusRepaireDTO cusRepaireDTO);

    CusRepaire addCusBreakDownRepaireRecord(CusBreakDownRepaireDTO cusBreakDownRepaireDTO);

    CusRepaire editCusBreakDownRepaireRecord(CusBreakDownRepaireDTO cusBreakDownRepaireDTO);

    CusRepaireVo getCusRepaire(Integer id);

    CusBreakDownRepaireDTO getCusBreakDownRepaire(Integer id);

    void del(List<Integer> ids);

    IPage<CusRepaireVo> findPageListByParam(CusRepairePageParam cusDeviceRepairePageParam);

    List<CusRepaireVo> findListByBreakDownId(Integer breakDownId);

    List<CusRepaireVo> findListByParam(CusRepairePageParam cusDeviceRepairePageParam);
}
